<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>玉灵 QQ:7031633 Email:webrx@126.com</title>
    <meta name="keywords" content="关键字">
    <meta name="description" content="简介">
</head>

<body>
<a href="b.jsp?id=30&name=李四">get 请求传值</a>
<hr>
<form action="b.jsp" method="get">
    <input type="hidden" name="id" value="101">
    <label>姓名：<input type="text" name="name"></label>
    <a href="javascript:void(0)" onclick="document.forms[0].submit()">提交</a>
    <label><input type="submit" value="提交"></label>
</form>
<hr>
<h3>post</h3>
<form action="b.jsp" method="post">
    <input type="hidden" name="id" value="88">
    <label><input type="text" name="name"></label>
    <input type="submit" value="提交POST">
</form>

<hr>
<form action="upload" method="post" enctype="multipart/form-data">
    <input type="hidden" name="id" value="88">
    <label>姓名：<input type="text" name="name"></label>
    <label><input type="radio" name="gender" value="男">男</label>
    <label><input type="radio" name="gender" value="女">女</label>
    <label><input type="radio" name="gender" checked value="保密">保密</label>
    <br>
    <label><input type="checkbox" name="love" value="音乐">音乐</label>
    <label><input type="checkbox" name="love" value="游戏">游戏</label>
    <label><input type="checkbox" name="love" value="编程">编程</label>
    <label><input type="checkbox" name="love" value="运动">运动</label>
    <br>
    <label>文件：<input type="file" name="file" multiple></label>
    <input type="submit" value="提交POST,多文件上传" name="t1">
    <input type="submit" value="老师" name="t2">
    <input type="submit" value="学生" name="t3">
</form>
</body>
</html>
